const path = require("path");
const url = require("url");

const resolve = dir => {
  return path.join(__dirname, ".", dir);
};
const PROXY = {
  LOCAL_URL: "http://localhost:9528",
  REMOTE_URL: "https://dld.lesscoding.net:9528"
};

module.exports = {
  alias: {
    Views: resolve("src/views"),
    STYLE: resolve("src/assets/Styles"),
    STATIC: resolve("public/static"),
    vue$: "vue/dist/vue.esm.js"
  },
  proxyTable: {
    "/dld": {
      target: PROXY.REMOTE_URL,
      changeOrigin: true,
      pathRewrite: {
        "^/dld": "/dld"
      }
    }
  }
};
